package com.flx.at.spring.code.trans;

import com.flx.at.spring.code.trans.dao.UserDao;
import com.flx.at.spring.code.trans.service.MoneyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: Fenglixiong
 * @Date: 2021/7/3 11:52
 * @Description:
 */
@Slf4j
public class MainApp {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(TransactionConfig.class);
        UserDao userDao = (UserDao) ctx.getBean("userDao");
        userDao.addT1();
        userDao.addT2();
    }

}
